<%@page import="org.apache.commons.lang3.StringUtils"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@include file="user-index-head.jsp"%> 
<%
	String str = (String)request.getAttribute("ret");
	if(!StringUtils.isEmpty(str)){
		out.print("<script>alert('"+str+"');</script>");
	}
%>
 <link rel="stylesheet" href="<%=path%>/js/kindeditor/themes/default/default.css" />
<link rel="stylesheet" href="<%=path%>/js/kindeditor/plugins/code/prettify.css" />
<script src="<%=path%>/js/kindeditor/kindeditor.js" type="text/javascript"></script>
<script src="<%=path%>/js/kindeditor/lang/zh_CN.js" type="text/javascript"></script>
<script src="<%=path%>/js/kindeditor/plugins/code/prettify.js" type="text/javascript"></script>
<script>

var editor;
KindEditor.ready(function(K) {
editor = K.create('#info', {
resizeType : 1,
allowPreviewEmoticons : false,
allowImageUpload : false,
items : [
'source','undo','redo','copy','plainpaste','wordpaste','clearhtml','quickformat','selectall','fullscreen','fontname', 'fontsize','subscript','superscript','indent','outdent','|', 'forecolor', 'hilitecolor', 'bold', 'italic', 'underline','hr',
'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
'insertunorderedlist', '|', 'emoticons', 'link', 'unlink','baidumap','lineheight','table','anchor','preview','print','template','code','cut']
});

});

var editor2;
KindEditor.ready(function(K) {
	editor2 = K.create('#endinfo', {
	resizeType : 1,
	allowPreviewEmoticons : false,
	allowImageUpload : false,
	items : [
	'source','undo','redo','copy','plainpaste','wordpaste','clearhtml','quickformat','selectall','fullscreen','fontname', 'fontsize','subscript','superscript','indent','outdent','|', 'forecolor', 'hilitecolor', 'bold', 'italic', 'underline','hr',
	'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
	'insertunorderedlist', '|', 'emoticons', 'link', 'unlink','baidumap','lineheight','table','anchor','preview','print','template','code','cut']
	});

	});
</script>
<script src="<%=path %>/js/date/WdatePicker.js"></script>
 <form class="form" method="post" action="<%=path%>/user/lottery!addTo.do" enctype="multipart/form-data" >
  <input type="hidden" name="lottery" value="LOTTERY_LOTTERY">
  <input type="hidden" value="LOTTERY_LOTTERY" name="keyword.model"/>
<input type="hidden" value="LOTTERY_LOTTERY" name="keyword.lottery.type"/>
 <input type="hidden" name="keyword.id" value="${keyword.id}">
  <input type="hidden" name="keyword.lottery.id" value="${keyword.lottery.id}">
 <div class="content">
<!--活动开始-->
<div class="cLineB">
    <h4>编辑幸运大转盘活动开始内容</h4><a href="<%=path%>/user/lottery!index.do?lottery=LOTTERY_LOTTERY"  class="right btnGrayS vm" style="margin-top:-27px" >返回</a>
</div> 
<div class="msgWrap bgfc"> 
<TABLE class="userinfoArea" style=" margin:0;" border="0" cellSpacing="0" cellPadding="0" width="100%"><TBODY>
<TR>
  <th valign="top"><span class="red">*</span>关键词：</th>
  <TD>
	<input type="hidden" value="LOTTERY_LOTERY" name="keyword.model" style="width:400px" >
	<input type="input" class="px" id="keyword" value="大转盘" name="keyword.keyword" style="width:400px" ><br />
  	<span class="red">只能写一个关键词</span>，用户输入此关键词将会触发此活动。
  </TD>
  <TD rowspan="7" valign="top">
	  <div style="margin-left:20px">
		<img id="pic" src="http://7.dijiuweishenghuo.duapp.com/activity-lottery-start.jpg" width="373px" >	
		<br />
		<input class="px"  name="keyword.lottery.startPic" value="http://7.dijiuweishenghuo.duapp.com/activity-lottery-start.jpg"   onclick="document.getElementById('pic').src=this.value;" style="width:363px;"  />
		<br />
		填写活动开始图片网址
	  </div>
  </TD>
</TR>
<TR>
  <th valign="top"><span class="red">*</span>活动名称：</th>
  <TD>
	<input type="input" class="px" id="title" value="${keyword.lottery.title }" name="keyword.lottery.title" style="width:400px" />
  	<br />
  	请不要多于50字!
  </TD>
  <TR>
  	<th valign="top"><span class="red">*</span>兑奖信息：</th>
  	<td>
		<input type="input" class="px" id="txt" value="${keyword.lottery.txt}" name="keyword.lottery.txt" style="width:400px" />
  		<br />请不要多于100字! 这个设定但用户输入兑奖时候的显示信息!
	</td>
  </TR>
 <TR>
  	<th valign="top"><span class="red">*</span>中奖提示：</th>
  	<td><textarea class="px" id="sttxt"  name="keyword.lottery.sttxt" style="width:400px"  >${keyword.lottery.sttxt }</textarea> 中奖后,提示信息
  		 </td>
</TR>
<TR>
	<th><span class="red">*</span>活动时间：</th>
	<td><input type="input" class="px" id="statdate" value="${keyword.lottery.startDate }" onClick="WdatePicker()" name="keyword.lottery.startDate" />                
		到
		<input type="input" class="px" id="enddate" value="${keyword.lottery.endDate }" name="keyword.lottery.endDate"  onClick="WdatePicker()"  /> 
	</td>
</TR>
<TR>
<th valign="top">活动说明：</th>
<td><textarea  class="px" id="info" name="keyword.lottery.info"  style="width:400px; height:200px" >${keyword.lottery.info }</textarea><br />换行请输入
 &lt;br&gt;
 </td>
</TR>
<TR>
<th><span class="red">*</span>重复抽奖回复：</th>
<td><input type="input" class="px" id="aginfo" value="${keyword.lottery.aginfo }" name="keyword.lottery.aginfo" style="width:400px" /><br>备注：
如果设置只允许抽一次奖的，请写：你已经玩过了，下次再来。
如果设置可多次抽奖，请写：亲，继续努力哦！</td>
</TR>
</TBODY>
</TABLE>
  </div> 
  
<!--活动结束-->
<div class="cLineB">
          	<h4>活动结束内容</h4></div> 
<div class="msgWrap bgfc">
 
  	<table class="userinfoArea" style=" margin: 0;" border="0" cellspacing="0" cellpadding="0" width="100%">
  		<tbody>
  			<tr>
  				<th valign="top"><span class="red">*</span>活动结束公告主题：</th>
  				<td><input type="input" class="px" id="endtite" value="${keyword.lottery.endTitle }" name="keyword.lottery.endTitle" style="width:400px" />
  					<br />
  					请不要多于50字! </td>
  				<td rowspan="4" valign="top"><div style="margin-left:20px"><img  id="end" src="http://7.dijiuweishenghuo.duapp.com/activity-lottery-end.jpg"  width="373px"/> <br />
  					<input class="px"  name="keyword.lottery.endPicUrl" value="${keyword.lottery.endPicUrl }"  onchange="document.getElementById('end').src=this.value;"  style="width:363px;"  />
  					<br />
  					填写活动结束图片网址 </div></td>
  				</tr>
  			<tr>
  				<th valign="top">活动结束说明：</th>
  				<td valign="top"><textarea  class="px" id="endinfo" name="keyword.lottery.endInfo"  style="width:400px; height:200px" >${keyword.lottery.endInfo }</textarea><br />换行请输入
 &lt;br&gt;
  				  </td>
  				</tr>
  			</tbody>
  		</table>
  </div> 
  
  
<!--奖项设置-->
<div class="cLineB">
          	<h4>奖项设置</h4></div> 
<div class="msgWrap bgfc">

<TABLE class="userinfoArea" style=" margin: 0;" border="0" cellSpacing="0" cellPadding="0" width="100%">
<TBODY>
<TR>
<th valign="top"><span class="red">*</span>一等奖奖品设置：</th>
<td><input type="input" class="px" id="fist"  name="keyword.lottery.fist" value="${keyword.lottery.fist }"  style="width:250px"/>
请不要多于50字! </td>
  <TD rowspan="9" valign="top">&nbsp;</TD>
</TR>
<TR>
<th valign="top"><span class="red">*</span>一等奖奖品数量：</th>
<td><input type="input" class="px" id="fistnums" name="keyword.lottery.fistNums" value="${keyword.lottery.fistNums }" style="width:60px" />
  <span class="red">如果是100%中奖,请把一等奖的奖品数量[ 1000就代表前1000人都中奖 ]填写多点</span></td>
</TR>
<TR>
<th valign="top">二等奖奖品设置：</th>
<td><input type="input" class="px" id="second" name="keyword.lottery.second" value="${keyword.lottery.second }"  style="width:250px"/>
请不要多于50字! </td>
</TR>
<TR>
<th valign="top">二等奖奖品数量：</th>
<td><input type="input" class="px" id="secondnums" name="keyword.lottery.secondNums" value="${keyword.lottery.secondNums }" style="width:60px" />
</td>
</TR>
<TR>
<th valign="top">三等奖奖品设置：</th>
<td><input type="input" class="px" id="third" name="keyword.lottery.third" value="${keyword.lottery.third }" style="width:250px" />
请不要多于50字! </td>
</TR>
<TR>
<th valign="top">三等奖奖品数量：</th>
<td><input type="input" class="px" id="thirdnums" name="keyword.lottery.thirdNums" value="${keyword.lottery.thirdNums }" style="width:60px" />
</td>
</TR>
<TR>
<th valign="top">四等奖奖品设置：</th>
<td><input type="input" class="px" id="four"  name="keyword.lottery.four" value="${keyword.lottery.four }"  style="width:250px"/>
请不要多于50字! </td>
  <TD rowspan="9" valign="top">&nbsp;</TD>
</TR>
<TR>
<th valign="top">四等奖奖品数量：</th>
<td><input type="input" class="px" id="fournums" name="keyword.lottery.fourNums" value="${keyword.lottery.fourNums }" style="width:60px" />
 </td>
</TR>
<TR>
<th valign="top">五等奖奖品设置：</th>
<td><input type="input" class="px" id="five"  name="keyword.lottery.five" value="${keyword.lottery.five }"  style="width:250px"/>
请不要多于50字! </td>
  <TD rowspan="9" valign="top">&nbsp;</TD>
</TR>
<TR>
<th valign="top">五等奖奖品数量：</th>
<td><input type="input" class="px" id="fivenums" name="keyword.lottery.fiveNums" value="${keyword.lottery.fiveNums }" style="width:60px" />
 </td>
</TR>
<TR>
<th valign="top">六等奖奖品设置：</th>
<td><input type="input" class="px" id="six"  name="keyword.lottery.six" value="${keyword.lottery.six }"  style="width:250px"/>
请不要多于50字! </td>
  <TD rowspan="9" valign="top">&nbsp;</TD>
</TR>
<TR>
<th valign="top">六等奖奖品数量：</th>
<td><input type="input" class="px" id="sixnums" name="keyword.lottery.sixNums" value="${keyword.lottery.sixNums }" style="width:60px" />
 </td>
</TR>
  
  </tbody>
 <tbody>
<TR>
<th valign="top"><span class="red">*</span>预计活动的人数：</th>
<td><input type="input" class="px" id="allpeople" name="keyword.lottery.allpeople" value="${keyword.lottery.allpeople }" style="width:150px"/>  预估活动人数直接影响抽奖概率：中奖概率 = 奖品总数/(预估活动人数*每人抽奖次数) 如果要确保任何时候都100%中奖建议设置为1人参加!<span class='red'>如果要确保任何时候都100%中奖建议设置为1人参加!并且奖项只设置一等奖.</span></td>
  </TR>
                                <TR>
<th valign="top"><span class="red">*</span>每人最多允许抽奖次数：</th>
<td><input type="input" class="px" id="canrqnums" name="keyword.lottery.canrqnums" value="${keyword.lottery.canrqnums }" style="width:150px"/>
必须1-5之间的数字</td>
 </TR>
<TR>
	<th valign="top">抽奖页面是否显示奖品数量：</th>
	<td><input class="radio" type="radio" name="keyword.lottery.displayJpNums" value="1" <c:if test="${keyword.lottery.displayJpNums=='1'}"> checked="checked" </c:if>>   显示 
	 <input class="radio" type="radio" name="keyword.lottery.displayJpNums" value="0" <c:if test="${keyword.lottery.displayJpNums=='0'}">checked="checked" </c:if>>不显示</td> 
</TR> 
<TR>
<th>&nbsp;</th>
<td><button type="submit" class="btnGreen" >保存</button>　<a href=""  class="btnGray vm">取消</a>　<span class="red">请确认功能管理已开启大转盘功能</span></td>
</TBODY>
</TABLE>
    



  </div> 


        </div>
</form>
      
        <div class="clr"></div>
      </div>
    </div>
  </div> 

<!--底部-->
  	</div>

<include file="Public:footer"/> 